package gamedemo.day09game.game01;

public class game1 {
    public static void main(String[] args){
        Role r1 = new Role("张三",90,"男");
        Role r2 = new Role("里斯",90,"女");
        Role r3 = new Role("我结婚",90,"软件");
        while (true){
            r1.attack(r2);
            if (r1.getPh() <= 0 || r2.getPh() <= 0){
                break;
            }
            r2.attack(r1);
            if (r1.getPh() <= 0 || r2.getPh() <= 0){
                break;
            }
            
        }
    }
}
